package com.oocl.ita.service.impl;

import java.util.List;

import com.oocl.ita.dao.ShopDao;
import com.oocl.ita.dao.impl.ShopDaoImpl;
import com.oocl.ita.service.CheckShopService;
import com.oocl.ita.vo.check.ChecksShopModel;

public class CheckShopServiceImpl implements CheckShopService{
	
	// wait for extension 2016/07/24 burgess Lai 
	public int passShop(int shopId) {
		ShopDao shopDao = new ShopDaoImpl();
		return shopDao.updateShopToPass(shopId);
	}

	// wait for extension 2016/07/24 burgess Lai
	public int sendToNoPass(int shopId){
		ShopDao shopDao = new ShopDaoImpl();
		return shopDao.updateShopToNoPass(shopId);
	}

	public List<ChecksShopModel> showCheckShops() {
		ShopDao shopDao = new ShopDaoImpl();
		return shopDao.showCheckShops();
	}

	public int CheckShops(List<ChecksShopModel> checks) {
		ShopDao shopDao = new ShopDaoImpl();
		return shopDao.updateShopsAvailable(checks);
	}
	
}
